package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcSpecialistMapper;
import com.csun.cmny.provider.model.domain.OmcSpecialist;
import com.csun.cmny.provider.model.dto.specialist.SpecialistQueryDto;
import com.csun.cmny.provider.model.vo.specialist.SpecialistQueryVo;
import com.csun.cmny.provider.service.OmcSpecialistService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcSpecialistServiceImpl extends BaseService<OmcSpecialist> implements OmcSpecialistService {
    @Resource
    private OmcSpecialistMapper specialistMapper;

    @Override
    public List<SpecialistQueryVo> selectSpecialist(SpecialistQueryDto specialistQueryDto) {
        return specialistMapper.selectSpecialist(specialistQueryDto);
    }
}
